package org.iabako.shared.entity.enumeration;

import org.iabako.client.tools.Messages;

/**
 * Created by jose on 17/09/14.
 */
public enum CustomFieldType implements LabelEnum {

    inputText("customfield_type_inputtext"),
    textarea("customfield_type_textarea"),
    integer("customfield_type_integer"),
    decimal("customfield_type_decimal"),
    list("customfield_type_list"),
    date("customfield_type_date");

    String labelKey;

    CustomFieldType(String labelKey) {
        this.labelKey = labelKey;
    }

    public String getLabel() {
        return Messages.getLabel(labelKey);
    }

    public String getLabelKey() {
        return labelKey;
    }
}
